package com.wtwd.campus.receiver;

import com.wtwd.campus.entity.MqGeneralValueResult;
import com.wtwd.campus.service.InjectFeignService;

/**
 * @Author ldaoliang
 * @Date create in 10:39 2021/9/17
 * @Description
 */
public class XMLYBindingStatus implements Receiver {
    @Override
    public String parseMessage(String data) {
        String[] split = data.split(",");
        String imei = split[1];
        String messageType = split[2];
        String commandNumber = split[3];
        MqGeneralValueResult mqGeneralValueResult=new MqGeneralValueResult();
        mqGeneralValueResult.setImei(imei);
        mqGeneralValueResult.setCommandNumber(commandNumber);
        InjectFeignService.getIrmFeignClientService().sendBindingStatusReply(mqGeneralValueResult);
        return imei;
    }
}
